package com.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AnnouceMapper {
    @Select("select content from tb_announce")
    String getAnnounce();

    @Update("update tb_announce set content = #{announce}")
    int updateAnnounce(@Param("announce") String announce);
}